import React from "react";

const Icon = (props) => {
  const { iconName, onIconClick } = props
  return <>
    <i className={`iconfont ${iconName}`} onClick={onIconClick}></i>
  </>
}

export default Icon;